//引入拦截器
import { request } from "@/utils/http"
//引入类型接口
import { 
    getHospitalSetListReturnType,
    getHospitalSetListParamsType 
} from "./model/hospitalSetType"


//医院设置中获取分页列表,get请求第二个泛型是请求的数据的类型
export const getHospitalSetListRequest = ({page,limit,hosname,hoscode}: getHospitalSetListParamsType)=>{
    return request.get<any,getHospitalSetListReturnType>(`/admin/hosp/hospitalSet/${page}/${limit}`,{
        params: {
            hosname,
            hoscode
        }
    })
}